Heuristic Algorithm for Buffer Allocation in Unreliable Production Lines