Added normalize vecotr function