COMPUTING THE JOINT SPECTRAL RADIUS