Add argmax.
Use rich compare; move refptr related code into refptr.h
Merge branch 'master' of github.com:rjpower/spartan

Conflicts:
	src/spartan/py-support.h
	src/spartan/refptr.h