Nested Partitions Method, Theory and Applications