Implemented calculation the measure of potential

- calculating measure of potential for each points