Add @inbounds to improve performance to nearer-C speeds