More updates

-moved s computation to C
-new sample dataset
-added functions that use thresholds to determine convergence