Remove linked list

A linked list reduces theoretical time complexity, but javascript
appears to optimize built-in arrays such that they are always more
efficient than linked lists.

Reverts 8b9da03 and b02768d

Signed-off-by: Eli Skeggs <skeggse@gmail.com>