Loading mnist dataset with matlab