Allow for customArgs

Add custom args so that custom comparison methods can provide more args such as max etc.