Created separate parser class

Calculator was starting to get bloated. The Parser should exist
separately from the calculator anyway.