1. Added rateSolution() to measures which calculates cost of given solution
2. Changed operations (added opInit() and opClear() functions to make it easier to use operations)