Optimizations

This branch is for testing the Accelerate.framework and various optimizations.