Split algorithm into separate file, add package.json
Merge pull request #1 from tmcw/package-split

Split algorithm into separate file, add package.json