started to tidy up nasty selection code.
created selection base class in CSelectionTools
created array for positions of selection boxes in BaseRuleSelector
continued to clean up the code.
removed some unused elements in CSelectionTools