Added profiling code.

Use:

    python2 -m cProfile -o profile.prof main.py outage 10000 > outage.csv
    python2 main.py profile > profile.txt