Pattern recognition processor and its application to straight line reconstruction of spark chamber data