Make boundary finder a bit more generic

- PiiBoundaryFinder now takes any matrix as input and can produce any type
  of coordinates as output.