implemented hough-transform

implemented hough transform and a sort of inverse.