attempted implementation of kma_malloc. Untested because kma_free not done yet.
first attempt at kma_bud