Improved algorithm: Uses scale, power^1.7, and applies to +/- weights differently.
Improved algorithm: Uses scale, power^1.7, and applies to +/- weights differently.

david1hung/P3,david1hung/P3,david1hung/P3,david1hung/P3,david1hung/P3,david1hung/P3