Spreadsheet evaluator in Java