A Heuristic Algorithm for Solving the Faculty Assignment Problem