Added CPU SIMD detection to allow optimized implementations of certain functions
Implementation of some architecture-specific optimized functions
Fixed some minor issues