Numpy Tutorial. Examples taken from http://wiki.scipy.org/Tentative_NumPy_Tutorial