Short exercise in reading in binary files and implementing a linked list in C++