RF: cost2thresh calls cost2thresh2 to minimize code duplication, added tests
RF: finish cleaning up cost to thresh, caught corner case in slice data
NF: add tests and replace function with duplicate bevaiour with corresponding numpy functions