Got my R-Tree working /o/
Also here's what it looks like in memory (kind of):
The label on the nodes is the bounding box for all the objects it contains (in this case, the rectangles that make up the walls on the room).

Also here's what it looks like in memory (kind of):

The label on the nodes is the bounding box for all the objects it contains (in this case, the rectangles that make up the walls on the room).