Minimum rank of graphs that allow loops