defining a class DepQueue for dependency queue