Added tests for algorithms in wt_algorithm.hpp

Refined intersect (results are ordered according to
value if underlying WT is lex_ordered)