added quadratic time mmd notebook