A sorted array implementation in C, intended for large datasets with custom comparators