first steps towards optimizing tensor networks