Soliton solutions of Hirota equation and Hirota-Maccari system