removes sorting from createCommitmentTree algorithm