Added solution to Trainsorting