unrolled a few loops and added some memalign