The mathematical madness behind a perfect NCAA basketball bracket