BitCoin Mining in Distributed system