added functionality to find left corner non-terminals for a terminal, added test for the same