implemented and tested LR subset search