Singular boundary method for water wave problems