Trying to run CCSD. Failing in fist contraction. The COst function is not returning correct index maps