Splitted sampleGrid into several methods
More refactoring
Initial attemt to port PDF417 from C++ to Java