Naive simplex implementation in Ruby.