A connection between the pattern classification problem and the General Linear Model for statistical inference