Changed getColumnFromMatrix signature as suggested by @bhouston.