changed variables threshold, len, local_min0, local_min1, and others to better suited types. arranged split row in better style with two new functions. added split row threshold improved functionality