Made use of Stack interface

NonBlockingStack now implements Stack