Initial commit of the SAME encoder
Finish SAME encoder