final Homework assignment for CS 2110, implement malloc