Finding shortest genome segments that regulate metabolic pathways