fix indexing bug in the feature computation
fix indexing bug in the feature computation

dwettstein/pattern-recognition-2016,dwettstein/pattern-recognition-2016,dwettstein/pattern-recognition-2016,dwettstein/pattern-recognition-2016