added Visvalingam-Whyatt reduction algorithm