removed optim module; moved its functionality to core and photo modules; moved drawing functions from core to imgproc. Removed FilterEngine etc. from public API
trying to fix builds
fixing more compile problems with Java bindings etc
trying to solve compile problems; temporarily disabled some tests for just added optimization algo's
fixed trailing whitespaces
Merge pull request #3103 from vpisarev:core_imgproc_optim_rearrangements