From mining to finance and power equipment, these midcaps quietly compounded into market-beating wealth creators—while most investors looked elsewhere