Cubs hire Maddux as assistant to GM