Initial commit
Code optimization to reduce runtime