Fun algorithms and data structures written in javascript