an implement of simplex algorithm