If 2cos^2x - cosx = 1 , what is the value of x?