Added BinaryQueue implementation.