Added few scalar functions

I have renamed sign to signum because in scala.math this function has signum name