Swedish scientists have found a correlation between people with high scores on intelligence tests and those with the ability to keep a regular rhythm.