Fix bug for features number in discovery matrix. It closes issue #23