Added string parser and correct insertion sort.