implement base64 decode function (untested)

base64 decode function