Added block vectorized implementation, changes for easier maintenance.

Split image vector into multiple chunks and process them in parallel,
added T1 fit, changed objective function implementation for easier maintenance.