2D array solutions