returns a unit vector
function unitVector input Integer ith "ith component is one"; input Integer n "size of the vector"; output Real[n] ei "e_i unit vector"; end unitVector;