[weightmap] Add an index function.

index = x + y * width (useful and readable)
[exploration] Add a new frontier detector.

Use for exploration planning using frontiers.
Also compute the frontiers attributes.
[exploration] Unit test.
[exploration] Python bindings and API.

Thanks to Pierrick Koch for his review and help.