Automatic SVM thresholds

If the user does not specify a threshold for SVM, the median value is
used as the threshold. This attempts to create two equally sized groups.