Implementation of CYK - Cocke–Younger–Kasami algorithm.