Simplex method, now on android