Combined mikaelh's optimized yacoin functions

improved performance using mikaelh source code
fixed bug with finding shares by adding ALGO_SCRYPT_JANE