Included adaptive threshold feature detection

In addition to current feature histogram.
Added in line cut planning.