ENH: Optimizing norm calculation
FIX: Added a test for sum_squared(), changed docs and fixed PEP8
Merge pull request #775 from mainakjas/optimize_code

ENH: Optimizing norm calculation