Equlity funtionlity

Added equals method to compare the dollar objects. This method is applicable for Dollar objects, but not for null or other objects.