An assignment from college in which we had to create our own malloc function