New semi-working solution for max option in BEDGraph