added optimization ideas and solution 3

added optimization ideas and solution 3