Implemented saving and loading of data to binary file