RHT computed using array multiplication to speed things up.