Fix n for drawSubset function, perfomance mode, refactored matlab env, improvment for meanshift

Signed-off-by: Nikolaj <ljaljushkin.nikolaj@gmail.com>