A simple implementation of Stream.Duplex spec in Node.js