Implementing a binary tree should be very helpful and we can move on towards merkel trees from there .