Adds new interface and method.

Adds FunctionType interface that defines function types for GUI and Core classes. Also adds Calculate method to core class.

Signed-off-by: Pyry Nikunen <pyry.nikunen@cs.tamk.fi>