Speed up Array computation

Note also that you can use the 3-argument dot function here