Changes to recursive implementation
Merge pull request #5 from LNA/recur

Changes to recursive implementation