Fix endlines
Add cost function
Add sigmoid gradient function
Change sigmoid argument name to z