Add extract to feature and target matrix