Added function checkFaults to find event that needs fewest page faults