Settings to change algorithm and minimum distance added

Fatal Exception caused due to onNewIntent in MainActivity when called
from Settings has to be fixed