Fixed an a typo in brownian.gap_close that caused the distance matrix to be devided all the time