Fixed warning when trying to close resource in destructor of constructor failed
Added support for custom headers in csv iterator
Added Queue implementation with constant time complexity and HistoryIterator uses it