COSMIT reshape for all regression strategy + avoid xrange
COSMIT  less nested constant check + use comprehension