Implementation of MAGIc algorithm for inferring CFG from English sentences