add back track solution