Added @inbounds and @simd to speed up singlerate