Added query segment trees and added them to bindtree tests.