Added method "is_sorted()" to SGVector

* plus unit tests for SGVector::qsort() and SGVector::is_sorted().