added bitmap output;
changed array initializer to use array2d.init