added more first type code.  I think there might be an error in the mincut code.  Needs checking.  Just using the sphere decoder for now