Make sqrtm work for vectors