Writing and Reading binary files not working - C#