Nonderivative Modified Gravity: a Classification