Implementation of standard Searching algorithms in C