Many things

Removed redundant condition checks from Trianglebroken

Change the temporary arrays allocated with new to smart pointers (added -std=c++11 to makefile
to compensate).

Various changes to adapt Wavefunction to two-centre calculations