treemap: reimplement using TotalOrd