Stone II problem source code