Added CYK algorithm tests