Implemented lookupXX
`selector` replaced by `accept` in `lookupOrd`