A sequence memorizer based on Cortical Learning Algorithm By Jeff Hawkins et. al. which has been modified in order to be adaptive on different input sizes.