Some Basic Data Structures for use in JavaScript