The document describes a data structure that efficiently supports removemin() and removemax() operations with O(log(n)) complexity by utilizing two binary heaps and a doubly linked list. It details the implementation of insert(), removemin(), and removemax() functions, along with their complexity proofs. The proposed structure allows for quick access to minimum and maximum values and maintains synchronization between the heaps and the list.