Cross-layer Design to Solve Cooperation Problem in Ad Hoc Network