Working linked list, but with memory leak which appears to be the size of a single patient.