update rle function to join same hist value after len=1 removed