Added minimum speed threshold to avoid classifying unintentional gestures. This way the user has to move their hand with some intent. Might need to tweak the threshold a little, although 500 seems like a reasonable value.