The 21 cm Forest as a Probe of the Reionization and the Temperature of the Intergalactic Medium