Modify RotationOrderDetector to detect order by fitting periodic functions of various orders.