Add contributing template
Clean up duplication in min key and max key