Nigerian army frees over 5,000 people from Boko Haram