Regularity of Potential Functions of the Optimal Transportation Problem