Add encoder motor library.

Add encoder motor library.