move functions into class body to avoid double definition errors

This fixes dome double definition errors in mcpele.
These errors appeared bcause now lowest_eig_potential is a member of FindLowestEigenvalue, and therefore the header needs to be included in the .h, rather than the .cpp, which gave the problem.

Improving FindLowestEigenvalue in mcpele depends on this PR.