Use Scala's Numeric TypeClass

For fun and profit. Not sure who else implements numeric.