big issue in aligned_malloc, the order of arguments was wrong in the memalign case