commented move_to_front function