Added imperative list merge sort part