Initial implementation of the numeric analysis
BEWARE: bugs are everywhere right now