Algorithm for Ninja style mining pool block share assignment