Update bharray_algos.c