Fix reallocation of D buffer in gemm
fix compile problems with contributed ximgproc/xphoto
tutorial on python bindings