Added tripletIter function
Started working on swordfish technique