Added extrema.c and test file.