Added complete naive malloc implementation