HW5: added the cky algo
HW5: minor changes