Similar Items: Design and simulation algorithm for cam system analysis