Updated: optimize array size calls

Signed-off-by: Alaa Attya Mohamed <vidooman@gmail.com>
Added: gitignore

Signed-off-by: Alaa Attya Mohamed <vidooman@gmail.com>