incorporated performance drop from removing example.length()
fixed missing factor of 2 (in unused code)
Added ReLUWeightingScheme / merged with svn-2348
Merge branch 'svn-r2348' into working