removed bisect_left and erfinv