Cosmic ray measurements with Pamela experiment