Some interesting algorithms, data structures, and design patterns in JavaScript