Created HSB class / amends

Added HSB class and made amends to the Math function to c#