Added queue implementation and associated tests.