Set of Useful Functions for C algorithms