reading binary file into slice of structs