added saveAssignments, a new sorted algo, and more test data