LLL lattice basis reduction algorithm implementation for JavaScript