Javascript implementation of some popular data structures and algorithms