Implement Ark Consensus algorithm