Implmented core code and test. Working!!!
Time and Space Complexity details added in algorithm description.