Incremental full configuration interaction.