Just a bunch of algorithms using Javascript with ES6