Added trait implementation for integer types

Used the format used for cmp traits. Is it worth adding the Num and Bitwise traits from libstd in full?