Implemented additional methods for BoundedQueue type