More functionality to ddocopt.d. Added Queue class