Text this: A Parallel Algorithm for Inverse Halftoning and its Hardware