created first three algorithms

still need to discuss alternatives for find first algorithm