Some functions are duplicated in the utils source codes like `interpolate` and` binary_search`. This should be reviewed.