Updated the misc.js for these algorithms