Condensation polymers of aldehydes or ketones with only compounds containing hydrogen attached to nitrogen of aldehydes with acyclic or carbocyclic compounds with urea or thiourea