A simplex algorithm implementation in asm.js