Distance-Based Keystroke Dynamics Smartphone Authentication and Threshold Formula Model