Study of directed and triangular flow of identified hadrons in fixed target energies at RHIC