Adding loss functions for Square Loss, Zero One Loss, and calculating the derivative of log loss