The fast multipole boundary element method for potential problems: A tutorial