Move constructor. Creates a vector and initializes it with parameters of the specified vector, that is then cleared.