A proof of Reidemeister-Singer's theorem by Cerf's methods