Replaced my sorting algorithms with Professor Oliveira's versions.