added rounding step to buildFromPrevFrames in cost method section,
started evaluation code