public function max($colName)
    {
        $max = -INF;
        foreach ($this->rows as $row) {
            if ($max<$row[$colName]) {
                $max = $row[$colName];
            }
        }
        return $max;
    }