Working on a search engine for Quraan translations

Q: What is the ruling for a software developer who receives a project in which he/she has to apply algorithms on a data set i.e. Qura'nic verses' translation. Lemmtatization,tokenization, stemming and bag of words techniques will be applied on translation in order to get the following result example:

First if one wants to search any masla from the Qur'an regarding a rukoo in namaz, the software will show the verses translation related to the rukoo in namaz only. Is it permissible for one to work on such project?

Reciting the “daal” in “wa lad-daaalleen” for less than 6 seconds

Q: I heard that when reading Surah Fatihah, you need to make the sound of the “dal” in “wa lad-daaalleen” longer, till 6 seconds. However, it is difficult for me to count how many seconds and often I finish it in 3 second or so. Is my prayer valid even if I do it deliberately because I can’t count seconds when reciting?

Masturbating in the state of ihraam

Q: A few years ago, I went for Hajj. May Allah Ta'ala forgive me, at that time (I can't remember if it was before or after Arafaat), I committed the terrible sin of masturbation. May Allah Ta'ala forgive me. What is the penalty for this? Also, does that act break ghusl? I doubt I made a ghusl after I committed that act. May Allah Ta'ala forgive me.