Finish test cases and add SortingMachineMain