Matt and Aaron's 16.06 Controls MinSeg Code