Create simplex.py

Contains all basic functions.