Added 'restrict' keyword to some pointers in the core of S&R calculation. Possible speeds things up in some cases.