terrain saving into binary file