initial commit for RS encoder; fixed T parameter for decoder