Fixed int->Z bug in QuerySegmentTree.
Got rid of boost::random.