Basic Data Structures written in JavaScript