Add encoder motor library.

add encoder motor library.