Feature: Top down segmentation algorithm added. Segmentation works ok with random data. Some problems with variables being overlapped. See line 87 in main.js. Checked in to make it easier to sync between devices