The Local Group Dwarf Galaxies. The Star Formation Histories derived using the Long Period Variable Stars