Version of malloc and free with more error checking for school project, simple defragmentation attempt for fun.