+unsigned char *jacu_mtf_inv(unsigned char *z, unsigned char *pos, int len)
+{
+ char *datos;
+ int i;
+
+ datos = (char*)malloc(sizeof(char)*len);
+ for(i=0; i<len; i++){
+ datos[i] = z[(unsigned int)pos[i]];
+ if (pos[i] != 0)
+ pop_front(z, (unsigned int)pos[i]);
+ }
+ return datos;
+}