Core: Added method for reading samples into memory.
Core: Adding learning algorithm.