Updated Inserrtion Sort