implementation of ES algorith added + some content to main work