Transmission for changing ratio