Helper class

Added a helper class for methods such as clamp etc which will be used by
many classes