update search algorithm
added a load missing gem method
TODO: add a method through metaprogramming to create a method on r_1 - r_5