add 2D iterator to sc_map_square
This version is probably still buggy and has some todos open