STUDY OF THE SUBJET STRUCTURE OF QUARK AND GLUON JETS