Rewrote kma_malloc, kma_free, and coalesce. Currently compiling with two warnings about casting ptrs to ints. Need to explicitly work out the ptr arithmetic to ensure we are returning the correct ptr in malloc.