Added better SLR table construction algorithms with tests. Also tested CFG reader.