Arrays intersection function - minor changes