Numerical study of the phase transitions in the two-dimensional Z(5) vector model