[DEV] Add rectangular analysis window type and stop using arrays in analysis module