Test for non-commutative version of range tree
small bugs fixed