changed folder structure - moved algorithm into teamb