Value of $\left ( 1+i \right )^{8}$, where $i=\sqrt{-1}$, is equal to

1. $4$
2. $16$
3. $4i$
4. $16i$