Refactored parser for parsing user input table size.
Implemented user-specified table sizes.