Collection of popular algorithms implemented in JavaScript