Added Comparable Interface to Commitment and implemented compareTo