Hough lines and circles implementation and comparison to opencv's functions.