using aligned_alloc instead of posix_memalign
polishing examples