Implementations of some computational geometry algorithms in Node.js