Corridors drawn on inner perimeter

Corridors now start from the inner perimeter of the rectangles.

Fixed many problems with discete rectangles and their width/height
mappings.

BST Map still in progress.