Move-To-Front Transformation

kind of move-to-front transformation (demo version)