SMS: Nested Partitions Method, Theory and Applications