Nonaxisymmetric g-Mode and p-Mode Instability in a Hydrodynamic Thin Accretion Disk