common operations and compare method implemented through double-dispatch; added the problem euler 1 solution