changed the searching algoritm after wikipedia
did stuff