implemented fuctionality to move items in the line in the merge fuction
Fuction merged implemented. The program is mergin the lines
Test cases added and passed.

Test output:
Ran 5 tests. 0 failures.