(In)Equality check for HandwrittenData; added preprocessing method 'connect lines'