Utility library revised and updated

The utility library (src/utils/utils.hpp) has been revised to
meet the new coding style for Gelide and updated with a lot of
new methods.