add blue_distance.c and max_balance.c