Add to .gitignore __pycache__ folder and profile info.
Refactor get_alpha() to make it faster

Computations of alpha using for loop are very slow. I switch to usage
of element-wise numpy functions to make get_alpha() function faster.