Here's a jsfiddle test case for a QuadTree that is supposed to include bounds..
http://jsfiddle.net/zYMpN/2/
Notice the weird behavior (duplicates.. not really meeting described behavior) in the results.. not even sure where to being with this.
This point quad testcase, OTOH, seems to work fine:
http://jsfiddle.net/zYMpN/6/
Any thoughts/feedback would be appreciated.
Thanks