implemented aligned_malloc design