simplified hillFunctionsLHS.R to only track what we need