Getting segfault in cor_bi when trying to get minimum of column value