implementing 3index*3index = 2*index in btas::contract