Add basic Functions.

Add spherical and sigmoid functions (migrated from cilib/scala).