We don't have any examples for this, but your best starting point is to look at the code used for other chains derived from bitcoin which use a different PoW mechanism (like Litecoin) and see how that code differs from Bitcoin Core. That will show you the type of modification required.