Added unit test to test Treap::update(). Also use user-supplied comparator consistently.