batakpout

Results 3 issues of batakpout

after adding these check the number of calls to getValue method get reduced by around 1000

Did a bit of a refactoring in euler 4