Simplified quat.fromMat3

I noticed this when I was going through the code that this method was using a rather complicated technique to compute mod 3 arithmetic using look up tables.  Performance wise this approach is much faster, and the code is also simpler/browser independent.