Replace hardcoded values with parameters in the selection algorithm
Added a testing framework (currently empty)
Fixed binary search and added tests
Fixed interp_array and added tests
Tests for binomial, median and sample
Tests and fixes for ks_critical_value
Tests for defaultFor and getScaleFactorIndex
Use toBeNull() instead of toEqual(null).
Extract and test computeMediansAndSigmas method.
Fix small bug with retrieving database records.
Extract and test scaleGroundMotions method.
Extract (and fix) selectBestFittingGroundMotions method.
Add KS alpha as a parameter.
Normalize the IM weightings so that they sum to 1.
Print debug output regarding the selected ground motions and their residual errors.
Add a tolerance to the weighting normalization.
Hardcoded a replicate sample for comparison to Brendon's output. This needs to be converted to a test later.