Dynamic array extension for Node.js offering better performance for use as a stack or queue