Computer relaying for smart grid protection