init project

add encode, decode, compare