Gap probabilities in random matrix theory