Replaced Insertion Sort implementation with in-place implementation