Helper classes Array2D and Set