selectRunning function

Function to extract run lengths greater than a threshold