sigmod(), costFunction(), and gradient calculation implemented.