Normalization function

Useful for normalizing input dimensions