as part of homework I had to implement Template functions, one of which was:
Template
T const& clamp(T const& value, T const& low, T const&