Got RandomizedSearchEngine working