Novel approach for computing the global minimum of proteins. 2. One-dimensional test cases