Three-dimensional numerical simulation of gaseous flow structure in semidetached binaries