added what the algorithm to a file called comp.js
Merge branch 'master' of https://github.com/alist/stitch-server-mirror