a simplex algorithm in matlab