Merge pull request #1 from reorder/master

more midtstate speedup
Remove old an unused mining code
start multiplication with lesser numbers