Matlab code implementing the tensor-based optimization algorithms for optical-interferometric imaging