Shape/gesture/stroke detection/recognition algorithm based on the $1 (dollar) Recognizer