Insertion sort works. TODO: Figure out why and add documentation with details.