Android - colouring images using android native development kit (NDK) c++.using algorithm is floodfill algorithm