Remove redundant WeightedNNBasedLinesetMatching functions

* includes some helper functions
* and .RemoveNNRepeats which seemed unused