Added optimized version of code to master
1 - This code has been uploaded in challenge
2 - It is same as master_code_test in 'optimization' branch