added simplex algorithm (with init)