Algorithms for Jewelry Industry 4.0