initial implementation of decode_single
Merge pull request #1 from muayyad-alsadi/master

implement decode_single