A start to Funnel algorithm

still lots of bugs, but it gets it right in some of the cases
Don't call premake every time