Worked on hough transform, but it runs slowly