Create custom_utility.h

Collection of utility functions for miscellaneous operations.