Insert sort implementation using a linkedList