modified simplex an objfun to pass pointer to extra data