This was written when i was just beginning to learn C++ Mainly for testing speed of algorithm