Returns x with the n bits that begin at position p inverted, leaving the others unchanged.