wrote the logic, err buggy logic. Will look into the bugs when I have some more time.
Merge branch 'master' of https://github.com/atuljangra/suffixtree