rank_filter.hxx: Added lineRankOrderFilter for other dimensions.
test_rank_filter.cxx: Added tests for a higher dimensional case.