Competing Interactions and Patterns in Nanoworld