Riecoin support

Added support for Riecoin mining based on a custom algorithm.