Added file I/O
Merge
Made printing happen in key-data order for all operations