Added the following functions: Gamma, P0, f, K. Ammended
G to better handle array views.