merged with devel and implementing gaussian kernel for patterson