Fixed errors. Now x_0 can be a vector too