Machine Learning Framework Algorithm to recognise handwriting