Code for "Robust Binarization of Degraded Document Images Using Heuristics" by Parker, Frieder, & Frieder