Add support for optional arguments to createOBTree()

createOBTree() now optionally accepts a comparator function as a parameter. createOBTree() can be invoked with either empty parameters or a pointer to a comparator function usable by the tree.