New "Modern art" tool

This is a heavily optimized re-write of the old "extreme rank" function.