add @inbounds to computation codes