Added generic functions for queue reset(), clear() and push(). Seperated
errPush() as non-generic queue work