Rewrite load and save functions with overloaded operator << and >>