Add ability to select optimization level (probably temporarily)
Add SSE version of mode 9
Add SSE version of mode 7

Also optimize C version a bit