New aux.c
Aux function implemented in C