Added signum convenience function.
Fixed signum logic.
Merge pull request #56 from eightyeight/math-sign-function

Added signum convenience function