added link list cycle detection, removal and merge sort of link list