public function top($num,$offset=0)
    {
        $count = $this->countData();
        $result = array();
        for ($i=$offset;$i<$num+$offset && $i<$count;$i++) {
            array_push($result, $this->rows[$i]);
        }
        return new DataStore($result, $this->metaData);
    }