Added implementation of double queue