Medium-sized companies are leading the charge as the broader stockmarket treads water