Create util.c

Utility class for custom shell to perform general operations.