Crashes Fixed, Sorts work

No more seg faults and the sorts actually put the list in order