added Array2D class. added algorithms for 2D arrays. more features/fixes.