Find same numbers in horizontal and vertical lines