Merging feature/linalg with develop

@vigsterkr I guess this portion also should be merged with develop. Please check once.