Moved block functionality into functions
Added calloc and realloc - still need to shrink blocks in realloc though