Started using data structures like map, set, and vector. Grammar rules are stored in map but order is not preserved though. Have to start using unordered map, tried but there was some import err