Spreadsheet implementation in Java