Implementation of online algorithm for simplifying digital pen input.