Changed add and search_nn into iterative functions
Merge pull request #5 from EmilHernvall/master

Modified add and search_nn to use iteration rather than recursion