CompoGenBiomal: Fixed signed vs unsigned comparison.
Replaced auto_ptr with unique_ptr.