A naive malloc implementation