Added information about the neighours of the corner points
Implemented stair algorithmen