corecenterhitrun function

Core-center estimation by hit-and-run