Fixes to Hough Transfor Algorithm