Implemented intensity gradient gradient magnitude computation