Speed of sound has nothing to do with altitude. Only temperature changes it. Of course, as you go up it gets colder. If I had an E6B around I would calculate what it would be, but I don't. FL500 would be tough, that's usually above the tropopause I think, so I don't know what ISA would be.