Added queues.cpp which uses queues for block inputs and outputs