normalize function

Normalize rows or columns by its standard deviation.