Started new application. Made input module with superpixel segmentation. Fixed a memory leak. Program now stays at a healthy 30Mb during running