Added cuda error handling using exception. Updated buildMex.m for cuda 5.0.
Merge branch 'master' of https://github.com/jpaasen/hos