Made get_local_maxima_3d public
It also takes connectivity as a paramater now