Optimized performance of forward energy method.
Implemented new fast energyDiff calculation method (from CAIR).
Removed initWidth and initHeight arguments from function signatures.
Improved quality for bitmap decreasing.
Code refactored.