finished debugging adding top failures. Also added an iterative version of insert that worked better than the recurisve one that ran out of the stack.