A Machine Learning Approach for the Online Separation of Handwriting from Freehand Drawing