no more memory leaks

added destructor to queues
haswell-testable version