Text this: An algorithm for two-dimensional density reconstruction in proton computed tomography (PCT)