Added some encoder source codes