Examples of Data Structures and Algorithms in JavaScript