Quad Tree improvements
Both implementations are faster, because they don't detect collisions twice.
I used an arbitrary order of the rectangles to do this.
Also, I disabled vsync to show results better.