Removed bounds from det due to the updated issue
Fixed error in convertMajorOrdering(int n)