added pattern and a bunch of learning algs
testing new learning algs and pattern class