A new determinant-based full configuration interaction method