Add pull function

Retrieving a value and its removal
Merge pull request #14 from QsmaPL/patch-1

Add pull function