Worked with merged sort, and fibonacci recursion