added extents to Leaves, cleaned up code
put depth and extents into leafs and nodes

cleaned up repetitive code with a new macro