ok
OK
version 2, improved energy minimizer