Performance study of the anisotropic flow and reaction plane reconstruction in the CBM experiment