added Matlab implementation of base64