A Comparative Study of Handwritten Mathematical Symbols Recognition