Uploaded initial documents.

Alogorithm is written in coffeescript and translated in javascript
using node.js