Using a Multi-Threaded Time-Step to Model a Multi-Function Relay in a Real Time Digital Simulator