More debugging. still some things left. need to add the stuff to call cyk table