Added prediction algorithm and example test case file
Added prediction algorithm