Add app directory
Added randomness to algo
Revert "Added randomness to algo"

This reverts commit 4c88ffc643d0e7a18f85bc9b46d1ddb111e842da.