CPU/GPU miner in c for bitcoin