Created by: joey12300
Bug fixes
OPs
Add a check whether label value is out of bound in cuda kernel. If it is, throw an exception.