Implemented horizontal line extraction.