Moving utility fonctions in util.h

Signed-off-by: Francis Deslauriers <fdeslaur@gmail.com>
Merge branch 'master' of https://github.com/frdeso/trees_how_do_they_work
adding util.h which will contain utility functions

Signed-off-by: Francis Deslauriers <fdeslaur@gmail.com>