An Improved Approach Based on MAS Architecture and Heuristic Algorithm for Systematic Maintenance