some basic cs problems and implementations in python