Rewrote and improved integer plane point finder.

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>