Added rub out and initial version of MDT

bFilter is an edge preserving blurring filter (bilateral filter) and is
used in MDT.
MDT can be improved by adding some smoothing (see TODO comment in mdt.m)