Data Structures and Common Algorithms Implemented in JavaScript