Exact Solution of Density Profile of Ideal Bose Gases in One Dimensional Harmonic Trap