Optimization of dipole-based antenna for 21cm line observation