added requierements.txt
added simple rindex calc