The theory behind the Yankees’ ever-changing lineup